<template>
  <!--验证完成-->
  <div class="offersuccess">
    <ul>
      <li><img src="../../assets/success.png" alt="" width="40"></li>
      <li>补录提交成功</li>
      <li>补录提交成功，请耐心等待后台审核</li>
      <li>
        <wv-button type="default" :mini="true" @click="goIndex()">回到首页</wv-button>
        <wv-button type="default" :mini="true" @click="lookAddCheckJiLu()">查看记录</wv-button>
      </li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
  import {getStore} from '../../../test/unit/storage'
  export default {
    name: 'success',
    props: {},
    data() {
      return {};
    },
    methods: {
      goIndex(){
        let employeeType = getStore('employeeType');
        if (employeeType == "platform") {
          this.$router.push("/index")
        }
        if (employeeType == "shop") {
          this.$router.push("/shangjiaindex")
        }
        if (employeeType == "third") {
          this.$router.push("/shangjiaindex")
        }
      },
      lookAddCheckJiLu(){
        this.$router.push({path: '/addcheck'})
      }
    },
    created() {

    },
    components: {}
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  ul {
    padding-top: 50px;
    li:nth-child(2) {
      font-size: 18px;
      color: #111;
      margin: 10px 0;
    }
    li:nth-child(3) {
      color: #fb556a;
      font-size: 15px;
      border: 1px solid #fb556a;
      border-radius: 5px;
      width: 95%;
      margin: 20px auto 0;
      padding: 30px 0;
    }
    li:last-child {
      display: flex;
      padding: 10px;
      margin-top: 20px;
      .weui-btn + .weui-btn {
        margin-top: 0;
      }
      button {
        flex: 1;
        font-size: 15px;
        border-radius: 25px;
        height: 40px;
        line-height: 40px;
      }
      :first-child {
        color: #f98e3c;
        background-color: #fff;
        margin-right: 10px;
        border: 1px solid #f98e3c;
      }
      :last-child {
        background-color: #f98e3c;
        color: #fff;
      }
    }

  }
</style>
